package br.com.threads;
/**
 * Esta classe recebe no construtor Thread uma Thread, esta classe implementa Runnable.
 * @author sidney.ferreira
 *
 */
public class Programa7 implements Runnable{
	public void run(){
		for(int i =0; i <= 4; i++)
			System.out.println("Programa 7");
	}
	public static void main(String[] args) {
		Programa7 p = new Programa7();
		Thread t1 = new Thread(p);
		Thread t2 = new Thread(new Programa6());
		t1.start();//chama o metodo run da classe programa7
		t2.start();//chama o metodo run da classe programa6
		
	}
}
